public class Foo {
    public void fails() {
        String[] a = new String[]{
                getName()
        };<caret>
    }
}